package org.link.bean;

/**
 * 
 * project_name:hibernate_manytoone
 * package_name:org.link.bean
 * file_name:Student.java
 * @author Link
 * create_date:2015年12月14日 上午11:49:10
 * modified_date:
 * description:学生实体类
 *
 */
public class Student {

	private String sid;
	private String sname;
	private ClassRoom classRoom;
	public Student() {
		super();
	}
	public Student(String sid, String sname, ClassRoom classRoom) {
		super();
		this.sid = sid;
		this.sname = sname;
		this.classRoom = classRoom;
	}
	public String getSid() {
		return sid;
	}
	public void setSid(String sid) {
		this.sid = sid;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public ClassRoom getClassRoom() {
		return classRoom;
	}
	public void setClassRoom(ClassRoom classRoom) {
		this.classRoom = classRoom;
	}
	@Override
	public String toString() {
		return "Student [sid=" + sid + ", sname=" + sname + ", classRoom=" + classRoom + "]";
	}
	
}
